add_subdirectory(./lib)  # 添加子CMAKE


include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
add_executable(cmake_learning ./makefile.cpp) # 必须先写生成可执行文件 再写添加库文件
target_link_libraries(cmake_learning lib)
